﻿using MrPP.SocketSystem;
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace MrPP.SerriedCabinet
{
    public class OpenColumn : Request
    {
        private byte district_ = 0;
        private byte column_ = 0;
        public OpenColumn(byte district, byte column)
        {
            district_ = district;
            column_ = column;



        }
        public override short getCommand()
        {
            var bytes = new byte[] { 0xA0, 0x01 };
            return BitConverter.ToInt16(bytes, 0);
        }


        public override void serialize(DataStream writer)
        {
            base.serialize(writer);
            writer.WriteRaw(new byte[] { district_, column_ });
        }

       
    }
}